package com.yx.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yx.entity.OrderDetail;
import com.yx.mapper.OrderDetailMapper;
import com.yx.service.IOrderDetailService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Classname OrderDetailServiceImpl
 * @Date 2021/07/20 19:09
 * @Author by yx
 * @Description TODO:
 */
@Service
public class OrderDetailServiceImpl extends ServiceImpl<OrderDetailMapper, OrderDetail> implements IOrderDetailService {
    @Override
    public void saveBatchOrderDetail(List<OrderDetail> orderDetailList, Integer tableIndex) {
        baseMapper.saveBatchOrderDetail(orderDetailList,tableIndex);
    }

    @Override
    public List<OrderDetail> getOrderDetailListByOid(String oid, Integer tableIndex) {

        return baseMapper.getOrderDetailListByOid(oid,tableIndex);
    }
}
